/**
 * @file search.h
 *
 */
#ifndef SEARCH_H
#define SEARCH_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/

#ifdef LV_CONF_INCLUDE_SIMPLE
#include "lvgl.h"
#include "lv_watch_conf.h"
#else
#include "../../../lvgl/lvgl.h"
#include "../../../../product/crane_bare/config/watch/lv_watch_conf.h"
#endif

#if USE_LV_WATCH_SEARCH != 0

/*********************
 *      DEFINES
 *********************/
#define SEARCH_ANIM_PLAY_TIME    180
/**********************
 *      TYPEDEFS
 **********************/
typedef struct
{
    lv_watch_activity_ext_t oldext;
    gif_info_t * gif_info;
    lv_obj_t * searchobj;
    bool   search_music_status;
} lv_search_ext_t;

/**********************
 * GLOBAL PROTOTYPES
 **********************/
void search_create_event_cb(lv_obj_t * btn,lv_event_t event);
void search_create_process(void);
void search_destroy_process(void);

/**********************
 *      MACROS
 **********************/

#endif /*USE_LV_WATCH_SOS*/

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /*SEARCH_H*/
